Skip to content

FELIX-6838: Fix Platform-Dependent URI Mock Failures in fileinstall Tests#514

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-fix-uri-mocks
Open

FELIX-6838: Fix Platform-Dependent URI Mock Failures in fileinstall Tests#514
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-fix-uri-mocks

Conversation

@sahvx655-wq

Copy link
Copy Markdown

Fixes failures in ConfigInstallerTest and DirectoryWatcherTest caused by platform-dependent URI construction in mock expectations.

The tests previously constructed expected file URIs by manually concatenating strings (for example, prefixing paths with "file:"). This approach can produce URI formats that differ across operating systems and may not match the URIs generated by the implementation.

Replace manual URI construction with File.toURI() to ensure test expectations use the same platform-independent URI representation as the production code, eliminating OS-specific test failures.

@sahvx655-wq sahvx655-wq force-pushed the fileinstall-fix-uri-mocks branch from 915e933 to 6420b5a Compare June 17, 2026 09:07
@sahvx655-wq sahvx655-wq changed the title Fix Platform-Dependent URI Mock Failures in fileinstall Tests FELIX-6838: Fix Platform-Dependent URI Mock Failures in fileinstall Tests Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant